﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebApp
{
    public partial class find : System.Web.UI.Page
    {
        IDAO con = new MyLinq();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (ViewState["number"] == null)
            {
                ViewState["number"] = 10;
            }
            else
            {
                GridView1.PageSize = (int)ViewState["number"];
            }

            if (IsPostBack)
            {

            }
            GridView1.DataBind();

        }

        protected void Button1_Click1(object sender, EventArgs e)
        {
            GridView1.DataBind();
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
